<%@page import="com.kaishengit.entity.CarItem"%>
<%@page import="com.kaishengit.entity.Order"%>
<%@page import="com.kaishengit.entity.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 	 <title>My JSP 'detailorder.jsp' starting page</title>
  </head>
  
  <body>
  <%@include file="daohang.jsp" %>
  <h3>订单收货人的详细信息</h3>
   <table border="1" width="70%">
     <tr>
     	<th>收货人</th>
     	<th>联系电话</th>
     	<th>地址</th>
     </tr>
   
   <%
      Order order=(Order)session.getAttribute("order");
   		
   	 %>
   
   <tr>
   		<td><%=order.getName() %></td>
   		<td><%=order.getTel() %></td>
   		<td><%=order.getAddress() %></td>
  		
   
   </tr>
   </table>
   <h3>订单商品的详细信息</h3>
    <%
    	List<CarItem> list=(List<CarItem>)session.getAttribute("shopCar");
    	  
      %>
    <table border="1" width="70%">
    
   <tr>
     		<th>商品名称</th>
     		<th>商品单价</th>
     		<th>数量</th>
     		<th>总价</th>
    </tr>
    <%
    	 for(CarItem item:list){
      %>
  <tr>
	    <td><%=item.getProd().getProdName()%></td>
     	<td><%=item.getProd().getPrice()%></td>
     	<td><%=item.getNum()%></td>
     	<td>￥<%=item.getTotal()%></td>
  
  </tr>
    <%} %>
   </table>
  </body>
</html>
